#!/bin/bash

# test name
test_name="basic"

# screen config
screen_cfg="test_anupam/screen.cfg"
#screen_cfg=screen_cleanup.cfg

# roles
initiator="queenmary"
responder="hmsvictory"
mbox1="cbacchus"
mbox2="odyseus"

initiator_port=22
responder_port=22
mbox1_port=22
mbox2_port=22

# hits
initiator_hit="2001:0012:4cf9:1f80:887a:3b6b:09dd:b9a4"
responder_hit="2001:001f:3a7f:2fab:d699:fc0a:3756:718e"

# branch
hipldir="/home/ziegeldorf/hipl-bzr/paper-signaling"
hipldir_remote="/root"

# start options
hipd_options="-dp"
hipfw_options="-kSFd"
hipfw_mbox_options="-ksAd"
hipfw_mbox2_options="-ksAd"

# wait some seconds for hipd and hipfw to start up before doing tests
startup_timeout=5

# hip config (keys, etc)
initiator_hip_cfg="initiator_hip_cfg"
responder_hip_cfg="responder_hip_cfg"
mbox_hip_cfg="mbox1_hip_cfg"
mbox2_hip_cfg="mbox2_hip_cfg"

# firewall configs
initiator_hipfw_cfg="test_anupam/hipfw_initiator.cfg"
responder_hipfw_cfg="test_anupam/hipfw_responder.cfg"
mbox_hipfw_cfg="test_anupam/hipfw_mbox1.cfg"
mbox2_hipfw_cfg="test_anupam/hipfw_mbox2.cfg"

# certificate setup

ca_dir="ca_certs"

# user keys and certs
user_key_dir=${ca_dir}

# trust roots
trusted_certificate_dir="tr_certs"

# 1 to install user certificates chains, 0 to flush them
user_certificates=1
user_certificate_dir="user_certs"

# 1 to install application certificates, 0 to flush them
app_certificates=1
app_config_dir=${ca_dir}
app_cert_client=${app_config_dir}"/client.cert"
app_chain_client=${app_config_dir}"/client.chain"
app_cert_server=${app_config_dir}"/server.cert"
app_chain_server=${app_config_dir}"/server.chain"
app_cert_dir_client="/root"
app_cert_dir_server="/root"

# updates to do (the number of connections...)
#sgnl_updates=2
